//
//  TTPwdLoginView.m
//  TaoTuo
//
//  Created by admin on 2019/8/15.
//  Copyright © 2019 admin. All rights reserved.
//

#import "TTPwdLoginView.h"

@implementation TTPwdLoginView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self phoneTF];
        [self pwdTF];
        
    }
    return self;
}

- (LLTextField *)phoneTF
{
    if (!_phoneTF) {
        _phoneTF = [[LLTextField alloc] initWithFrame:CGRectMake(0, 0, self.width, 45)];
        _phoneTF.leftImageName = @"zhanghao";
        [_phoneTF setPlaceholder:@"请输入手机号" lightColor:nil darkColor:nil];
        _phoneTF.textColor = [UIColor blackColor];
        _phoneTF.keyboardType = UIKeyboardTypeNumberPad;
        [self addSubview:_phoneTF];
        
        
    }
    return _phoneTF;
}


- (LLTextField *)pwdTF
{
    if (!_pwdTF) {
        _pwdTF = [[LLTextField alloc] initWithFrame:CGRectMake(0, self.phoneTF.bottom + 15, self.width, 45)];
        _pwdTF.leftImageName = @"mima";
        [_pwdTF setPlaceholder:@"请输入密码" lightColor:nil darkColor:nil];
        _pwdTF.textColor = [UIColor blackColor];
        _pwdTF.keyboardType = UIKeyboardTypeASCIICapable;
        _pwdTF.secureTextEntry = YES;
        [self addSubview:_pwdTF];
    }
    return _pwdTF;
}


@end
